package io.demo.hallelujahflowable6;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.BpmnError;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Component;

/**
 *
 */
@Slf4j
@Component
public class SampleBean implements JavaDelegate {

	@Override
	public void execute(DelegateExecution execution) {
		log.info("Start Doing");
		throw new BpmnError("10086", "Hello");
	}

}
